* {
  margin: 0;
  padding: 0;
}
a {
text-decoration: none;
color: #000000;
}
img {
  vertical-align:top;
}
body {
/*padding-top: 140px;*/
box-sizing: border-box;
background-color: #fff;
scroll-behavior: smooth;
}
html {
scroll-behavior: smooth;
}
/* 公共样式 */
.link_a {
  display: inline-block;
  text-decoration: none;
}

header {
  width: 100%;
  background-color: #fff;
  /*position: fixed;*/
  /*top: 0;*/
  z-index:999;
  background-color: #fff;
  position: relative;
}
header .head {
  width: 1160px;
  height: 100px;
  margin: 0 auto;
  /* background-color: skyblue; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .head .logo {
  width: 174px;
  height: 60px;
  /* background-color: pink; */
}
header .head .logo img {
  width: 100%;
}
header .head .user_info {
  width: 400px;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
header .head .user_info .link {
  width: 100px;
  height: 22px;
  display: flex;
  justify-content: space-evenly;
}
header .head .user_info .link a{
  font-size: 13px;
  color: #333;
}
header .head .user_info .search {
  width: 160px;
  height: 32px;
  display: flex;
  border-bottom: 1px solid #000;
}
header .head .user_info .icon {
  width: 120px;
  height: 24px;
  display: flex;
  justify-content: space-between;
  margin-left: 8px;
}
header .head .user_info .icon a:nth-child(2){
position: relative;
}
/* 当移动到第二个a的时候 hv让下面的ewm_icon_pic_none显示模式为block*/
/* header .head .user_info .icon a:nth-child(2):hover .ewm_icon_pic_none{
display: block;
} */
header .head .user_info .icon a:nth-child(2) .ewm_icon_pic_none {
position: absolute;
display: none;
left: -30px;
top:30px;
border: 1px solid #c10000;
}
header .head .user_info .icon a:nth-child(2) .ewm_icon_pic_none img {
width: 80px;
height: 80px;
}
/* 在二维码图片这个盒子前面用伪元素显示 */
header .head .user_info .icon a:nth-child(2) .ewm_icon_pic_none::before {
content: "";
width: 0;
height: 0;
border: 6px solid #c10000;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
/* 定位 */
position:absolute;
top:-12px;
left:32px;
}
header .head .user_info input {
  border: 0px;
  width: 130px;
}
header .head .user_info button {
  background: url(../images/ss.png);
  width: 20px;
  height: 20px;
  border: 0px;
  margin-top: 6px;
  cursor: pointer;
}
header .ding {
	margin-top: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	padding: 20px 0;
	background: #fff;
	z-index: 100;
}

/* 大nav开始 */
header nav {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  /* border-top: 1px solid gray; */
  border-bottom: 1px solid gray;
  height: 40px;
  /* background-color:aquamarine; */
}
header nav .navigation {
  width: 1160px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
header nav .navigation>a {
  padding: 20px 20px;
  color: #333;
  font-size: 14px;
  transition: all 0.5s;
}

header nav .navigation>a[name="all"]:hover .all_product{
height: 280px;
}
header nav .navigation a[name="accessories"] {
transition: all 1s;
}
header nav .navigation a[name="accessories"]:hover .css{
display: block;
}
header nav .navigation a[name="decorations"]:hover .decorations{
display: block;
}
header nav .navigation span a{
  font-size: 12px;
  color: #666666;
}

header nav .navigation .all_product {
width: 100%;
height: 0;
background-color: #fff;
position: absolute;
top: 41px;
left:0;
z-index: -1;
overflow: hidden;
transition: all 0.5s;
}
header nav .navigation .all_product .center {
width: 1160px;
height: 280px;
margin: 0 auto;
display: flex;
justify-content: space-evenly;
transition: all 0.5s;
}
header nav .navigation .all_product .center .product_item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
/* 第二个样式 */
header nav .navigation .css {
width: 100%;
height: 40px;
display: none;
position: absolute;
background-color: #fff;
top:41px;
left:0;
transition: all 0.5s;
}
header nav .navigation .css .center {
width: 550px;
height: 40px;
margin: 0 auto;
display: flex;
align-items: center;
transition: all 0.5s;
}
header nav .navigation .css .center span:first-child {
font-size: #000;
margin-right: 10px;
cursor: pointer;
}
header nav .navigation .css .center span:last-child {
font-size: #000;
cursor: pointer;
}
/* 第二个样式 */

/* 第三个样式 */
header nav .navigation .decorations {
width: 100%;
height: 40px;
position: absolute;
background-color: #fff;
display: none;
top:41px;
left:0;
transition: all 0.5s;
}
header nav .navigation .decorations .content {
width: 550px;
height: 40px;
margin: 0 auto;
display: flex;
align-items: center;
}
header nav .navigation .decorations .content span:first-child {
font-size: #000;
margin-right: 10px;
cursor: pointer;
}
header nav .navigation .decorations .content span:last-child {
font-size: #000;
cursor: pointer;
}
/* 大nav结束 */


.goTop {
z-index: 9;
position: fixed;
top:393px;
right:12px;
width: 58px;
height: 238px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
}
/* 电梯导航的第一层div */
.goTop >div {
width: 50px;
height: 50px;
background-color: #f4f4f4;
border: solid 1px #d6d6d6;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
/* 第一个导航 */
.goTop >div:first-child{
  background-image: url(../images/gt1.png);
  background-position:center;
  background-repeat: no-repeat;
}
.goTop >div:first-child > div{
  width: 50px;
  height: 0px;
  background-color: red;
  color: #fff;
  font-size:12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  opacity: 0;
  transition: all 1s;
}
.goTop >div:first-child:hover > div{
  width: 50px;
  height: 50px;
  background-color: red;
  font-size:12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  opacity: 1;
}


/* 第一个导航 */

/* 第二个导航 */
.goTop >div:nth-child(2) {
  background-image: url(../images/gt2.png);
  background-position: center;
  background-repeat: no-repeat;
}
.goTop>div:nth-child(2) >div{
  width: 50px;
  height: 0px;
  background-color: red;
  font-size:12px;
  color: #fff;
  display: flex;
  padding: 2px 9px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s;
}
.goTop>div:nth-child(2):hover >div{
  height: 50px;
  opacity: 1;
}

/* 第三个导航 */
.goTop >div:nth-child(3) {
  background-image: url(../images/gt3.png);
  background-position: center;
  background-repeat: no-repeat;
}
.goTop>div:nth-child(3) >div{
  width: 50px;
  height: 0px;
  background-color: red;
  font-size:12px;
  color: #fff;
  display: flex;
  padding: 2px 9px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s;
}
.goTop>div:nth-child(3):hover >div{
  height: 50px;
  opacity: 1;
}

/* 第四个导航 */
.goTop >div:nth-child(4) {
  background-image: url(../images/gt4.png);
  background-position: center;
  background-repeat: no-repeat;
    transition: all 0.5s;
}
.goTop>div:nth-child(4) >div{
  width: 50px;
  height: 0px;
  background-color: red;
  font-size:12px;
  color: #fff;
  display: flex;
  padding: 2px 9px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  transition: all 1s;
}
.goTop>div:nth-child(4):hover >div{
  height: 50px;
  opacity: 1;
}

/* 第四个导航 */


/* .goTop div a {
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
} */
.goTop div img {
text-align: center;
line-height: 17px;
width: 19px;
height: 17px;
}

.background {
  width: 100%;
  height: 40px;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
}
.background .link {
  width: 1160px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.background .link span {
  margin-right: 24px;
}
.background .link span a {
  font-size:12px;
  color:#666;
}

/* 轮播图 */
/* 1.定义动画 */
@keyframes banner {
  0% {
      transform: translate(0,0);
  }
  17% {
      transform: translate(0,0);
  }
  34% {
      transform: translate(-100%,0);
  }
  51% {
      transform: translate(-100%,0)
  }
  68% {
      transform: translate(-200%,0);
  }
  85% {
      transform: translate(-200%,0);
  }
  100% {
      transform: translate(-300%,0);
  }
}

/* 轮播图 开始*/
.banner {
  width: 100%;
  overflow: hidden;
/* background-color: #00ffff; */
}

.banner .banner_son {
  width: 400%;
  display: flex;

}
/* 轮播图 里面的图片 */
.banner .banner_son img {
  width: 100%;
  transition: all 6s;
  /* 使用动画 */
  animation-name:banner;
  /* 动画 */
  animation-duration: 6s;
  /* 动画无限制次数 */
  animation-iteration-count: infinite;
}
/* 轮播图 结束*/


/* 商品详情 */
.category {
position: relative;
top:-40px;
display: flex;
flex-direction: row;
justify-content: space-between;
width: 840px;
height: 380px;
margin: 0 auto;
z-index:1;
border: 15px #fff solid;
background-color: #fff;
box-sizing: border-box;
/* margin-bottom: 10px; */
}
/* 商品详情 商品1 */
.category .item1 {
flex: 1;
height: 100%;
box-sizing: border-box;
border-right: 15px solid #fff;
}
/* 商品详情 商品2 */
.category .item2 {
flex: 1;
height: 100%;
/* 怪异模式 */
box-sizing: border-box;
border-right: 15px solid #fff;
}
/* 商品详情 商品3 */
.category .item3 {
flex: 1;
height: 100%;
box-sizing: border-box;
border-left: 0px solid fff;
}
/* 商品列表 */
.goods {
position: relative;
top:-36px;
width: 1160px;
height: 1070px;
padding-right:10px;
margin: 0 auto;
/* 怪异模式 */
/* box-sizing: border-box; */
/* background-color: #ffa500; */
}
/* 商品列表 的标题 */
.goods .title {
margin: 0 auto;
width: 811px;
  height: 34px;
}
.goods .title img {
width: 100%;
height: 34px;
}
.goods .items {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
.goods .item {
flex:1;
display: flex;
/* background-color: pink; */
margin-left: 14px;
/* box-sizing: border-box; */
margin-bottom: 22px;
}
.goods .item img {
width: 276px;
height: 276px;
}
.goods .item .name{ 
margin-top: 8px;
text-align: center;
font-size: 12px;
}
.goods .item .pric{ 
text-align: center;
font-size: 14px;
font-weight: bold;
color: #a10000;
}
.goods .item:nth-child(4) {
margin-right: 0px;
}
.goods .item:nth-child(8) {
margin-right: 0px;
}
.topUp {
width: 100%;
background-color: gray;
}
.footer {
position: relative;
top:-36px;
}
.promise {

width: 1160px;
height: 114px;
margin: 0 auto;
box-sizing: border-box;
background-color: pink;
padding-top: 30px;
}
.promise .promise1 {
float: left;
margin: 0 auto;
width: 290px;
height: 53px;
text-align: center;
background-color: #faebd7;
}
.promise .promise2 {
float: left;
margin: 0 auto;
width: 290px;
height: 53px;
text-align: center;
background-color: green;
}
.promise .promise3 {
float: left;
margin: 0 auto;
width: 290px;
height: 53px;
text-align: center;
background-color: #ff0000;
}
.promise .promise4 {
float: left;
margin: 0 auto;
width: 290px;
height: 53px;
text-align: center;
background-color: brown;
}
.promise1 div {
margin-top: 31px;
margin-left: 71px;
}
.promise2 div {
margin-top: 31px; 
margin-left: 71px;
}
.promise3 div {
margin-top: 31px; 
margin-left: 71px;
}
.promise4 div {
margin-top: 31px;
margin-left: 71px;
}
/* 承诺上面的图片 */
.promise img {
vertical-align: middle;
}
/* 承诺上面的文字 */
.promise span {
text-align: center;
}
/* 页脚 */
footer .promise {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 116px;
background-color: #fff;
}
footer .promiser {
width: 290px;
height: 53px;
box-sizing: border-box;
border-right: 1px solid #dbdbdb;
display: flex;
align-items: center;
justify-content: center;
}
footer .promiser .margin {
margin-right: 12px;
}
footer .copyright {
width: 100%;
height: 90px;
background-color: #000000;
color: #fff;
font-size:12px;
display: flex;
justify-content: center;
align-items: center;
text-indent: 12em;
}
/* 页脚 */

/* 电梯导航 */
.returnTop {
position: fixed;
top: 0;
right: 0;
text-align: center;
padding-top: 20px;
box-sizing: border-box;
font-size: 15px;
font-weight: 900;
width: 100px;
height: 100px;
background-color: blue;
}
/* 电梯导航 */



/*定位样式*/

.ding h1 {
	position: absolute;
	left: 10%;
	top: 20%;
}

.ding h1 img {
	width: 65%;
}


/*.ding #top1{
	display: none;
}*/

.ding #top1 p,
.ding #top1 div {
	display: none;
}

.ding ul li a:before {
	bottom: -25px;
}

.ding div.sList,
.ding div.sList2 {
	top: 81px;
}

.ding ul {
	float: left;
	margin-left: 18%;
	line-height: 0;
}

.ding div form {
	width: 185px;
	height: 30px;
	line-height: 30px;
	margin: 0 10px;
	margin-top: 5px;
	border-bottom: 1px solid #262626;
}

.ding div.sList2 a {
	float: left;
	margin-right: 40px;
	line-height: 38px;
}

.ding div.sList div dl dd {
	line-height: 35px;
}


/*定位样式 结束*/